<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            font-size: 14px;
            font-family: "微软雅黑","黑体";
            color: #212121;
        }

        *{
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        img{
            max-width: 100%;
            max-height: 100%;
        }

        .shuxian{
            color: #999;
            padding: 0 5px;
        }

        .quxian{
            text-decoration: none;
            color: #212121;
        }
        /* 快速设定小灰字体 */
        .huizi{
            font-size: 14px;
            color: #999;
        }
        /* 设定一个隔开两个相邻行列块的块 */
        .qingchukuai{
            clear: both;
        }

        .juzhong{
            text-align: center;
        }

        .dingkuang{
            /* overflow: hidden; */
            width: 100%;
            height: 191.6px;
            border-bottom: 2px #3ab5e6 solid;
            box-sizing: border-box;
            
        }
        .head{
            width: 100%;
            height: 30px;
            background-color: #f5f5f5;
        }
        .ding{
            margin: 0 auto;
            width: 1200px;
            height: 30px;
        }
        .dingleft{
            float: left;
            width: 200px;
            height: 30px;
            /* text-decoration: none; */
            font-size: 12px;
        }
        .dingleft a{
            text-decoration: none;
            line-height: 30px;
            color: #999;
        }
        .dingleft a:hover{
            color: #3ab5e6;
        }
        .dingyou{
            float: right;
            height: 30px;
            font-size: 12px;

        }
        .dingyou a{
            text-decoration: none;
            line-height: 30px;
            color:#999;
        }
        .dingyou a:hover{
            color: #3ab5e6;
        }
        .sousuo{
            margin: 0 auto;
            width: 1200px;
            height: 90px;
        }
        .sou{
            box-sizing: border-box;
            /* margin-top: 30px; */
            padding-top: 30px;
            width: 1200px;
            height: 90px;
        }
        .sou1{
            border: 2px #2db4ea solid;
            /* margin: auto auto; */
            box-sizing: content-box;
            width: 550px;
            height: 35px;
        }
        .sou1 input{
            box-sizing: content-box;
            float: left;
            padding: 0 10px;
            line-height: 35px;
            font-size: 16px;
            display: block;
            border: none;
            outline: none;
            width: 460px;
            height: 35px;
            /* color: #cccccc; */

        }
        .souxia{
            /* clear: both; */
            margin: 0 auto;
            /* background-color: red; */
            width: 550px;
            /* height: 25px; */
            /* float: left; */
        }
        .souxia .x1{
            color: #e4393c;
            font-size: 12px;
            text-decoration: none;
            line-height: 25px;
        }
        .souxia .x2{
            color: #999;
            font-size: 12px;
            text-decoration: none;
            line-height: 25px;
        }
        .bugcar{
            width: 108px;
            height: 35px;
            float: right;
            margin-top: 1px;
            border: 1px #ddd solid;
            border-radius:4px;
            overflow: hidden;
        }
        .bugcar a{
            text-decoration: none;
            color: #212121;
        }
        .bugcar:hover{
            background-color: #ddd;
        }
        .neiceng{
            width: 108px;
            height: 35px;
            /* background-color:red; */
        }
        .go{
            display: inline-block;
            text-align: center;
            width: 108px;
            line-height: 35px;
            font-size: 16px;
            /* text-decoration: none; */
            color: black;
        }
        .fenlei{
            margin: 0 auto;

            width: 1200px;
            height: 40px;
            /* background-color: lightblue; */
        }
        .fenlei .suoyoushangping{
            display: inline-block;
            /* float: left; */
            padding-left: 30px;
            width: 170px;
            height: 40px;
            background-color: #3ab5e6;
        }
        .fenlei a{
            font-size: 16px;
            text-decoration: none;
            line-height: 40px;
        }
        .shouye{
            display: inline-block;
            box-sizing: border-box;
            margin-left: 20px;
            padding: 0 15px;
            width: 62px;
            height: 40px;
            color: #212121;
            /* background-color: lightblue; */
        }
        .shouye:hover{
            color:#3ab5e6 ;
        }
        .xinping{
            display: inline-block;
            box-sizing: border-box;
            padding: 0 15px;
            width: 62px;
            height: 40px;
            color: #212121;
            /* background-color: lightblue; */
        }
        .xinping:hover{
            color: #3ab5e6;
        }
        .xianshigou{
            display: inline-block;
            box-sizing: border-box;
            padding: 0 15px;
            width: 78px;
            height: 40px;
            color: #212121;
            /* background-color: lightblue; */
        }
        .xianshigou:hover{
            color: #3ab5e6;
        }
        .paihangbang{
            display: inline-block;
            box-sizing: border-box;
            padding: 0 15px;
            width: 78px;
            height: 40px;
            color: #212121;
            /* background: lightblue; */
        }
        .paihangbang:hover{
            color: black;
            color: #3ab5e6;
        }
        .weizhi{
            margin: 0 auto;
            width: 1200px;
            height: 50px;
            /* background-color:greenyellow; */
            /* margin-top: 2px; */
        }
        .weizhi a{
            display: inline-block;
            /* height: 50px; */
            /* background-color: red; */
            text-decoration: none;
            color: #212121;
            font-size: 14px;
        }
        .pic{
            margin: 20px auto 0;
            width: 1200px;
            height: 520px;
            /* background-color: yellowgreen; */
        }
        .shangpinggoumai{
            margin-left: 20px;
            float: left;
            width: 520px;
            /* height: 400px; */
            /* background-color: lightblue; */
        }
        .shutimu{
            margin-bottom: 10px;
            width: 520px;
            height: 40px;
            /* background-color: yellow; */
        }
        .shutimu p{
            font-size: 18px;
            line-height: 40px;
            font-weight: bold;
        }
        .auther{
            /* display: block; */
            margin: 10px 0;
            width: 520px;
            height: 30px;
            line-height: 30px;
            font-size: 14px;
            color: #999;
        }
        .dingjia{
            box-sizing: border-box;
            padding: 15px;
            width: 520px;
            height: 100px;
            line-height: 30px;
            /* color: #999; */
            background-color: #e5e5e5;
        }
        .dingjia p{
            color: #999;
        }
        .xiangqing{
            box-sizing: border-box;
            margin-top: 10px;
            padding: 0 15px;
            width: 520px;
            height: 90px;
            /* background-color: lightblue; */
        }
        .s1{
            display: inline-block;
            width: 70px;
            height: 30px;
            line-height: 30px;
            /* background-color: yellow; */
        }
        .s2{
            display: inline-block;
        }
        .s3{
            display: block;
            box-sizing: border-box;
            float: left;
            padding: 5px 0;
            width: 275px;
            height: 60px;
            /* background-color: lightblue; */

        }
        .red{
            color:#e4393c;;
        }
        .red:hover{
            color: #2db4ea;
        }
        .jiagouwuche{
            box-sizing: border-box;
            margin-top: 20px;
            width: 520px;
            /* background-color: yellow; */
        }
        .j1{
            display: inline-block;
            /* box-sizing: border-box; */
            border: 1px #38b8eb solid;
            padding: 10px 30px;
            margin-right: 20px;
            width: 120px;
            height: 27px;
            background-color: #2ab4e8;
            font-size: 18px;
            color:white;
            text-align: center;
            line-height: 27px;
        }
        .fuwu{
            width: 520px;
            height: 60px;
            /* background-color: yellow; */
        }

        .tuijian{
            /* border:1px #e8e8e8 solid; */
            box-sizing: border-box;
            /* margin: 40px auto; */
            margin: 0 auto 30px;
            width: 1200px;
            /* height: 320px; */
            /* background-color: burlywood; */
        }

        .xinshu{
            display: inline-block;
            /* float: left; */
            box-sizing: border-box;
            border: 1px #e8e8e8 solid;
            vertical-align: top;
            width: 220px;
            /* height: 351.6px; */
            /* background-color: red; */
        }
        .xinshutuijian{
            box-sizing: border-box;
            border-bottom: 1px #e8e8e8 solid;
            width: 218.4px;
            height: 50.8px;
            font-size: 18px;
            text-align: center;
            line-height: 50px;
            background-color: #f3f3f3;
        }
        .xinshuzhanshi{
            /* border-top: 0px; */
            width: 218.4px;
            height: 300px;
            /* background-color: yellowgreen; */
        }
        .xinshuzhanshi:hover img{
			transform: scale(1.2);
        }
        .shuming{
            box-sizing: border-box;
            display: block;
            margin-top: 40px;
            padding: 0px 20px;
            width: 218.4px;
            /* background-color: lightcyan; */
            height: 36px;
            text-align:center;
            color: #666;
        }
        .xinshuzhanshi:hover .shuming{
            color: #212121;
        }
        .shangpingshuxing{
            display: inline-block;
            /* float: right; */
            margin-left: 10px;
            width: 970px;
            height: 300px;
            /* background-color: lawngreen;     */
        }
        .shangpingshuxing1{
            float: left;
            box-sizing: border-box;
            border: 1px #e8e8e8 solid;
            width: 840px;
            height: 300px;
            /* background-color: lightblue; */
        }
        .shuxingxialan{
            width: 838.4px;
            height: 50px;
            background-color: #f5f5f5;
        }
        .shuxing{
            display: block;
            box-sizing: border-box;
            padding: 30px 40px;
            width: 838.4px;
            height: 180px;
            /* background-color: lightblue; */
        }
        .lshuxing{
            display: block;
            float: left;
            width: 33.33333%;
            height: 30px;
            line-height: 30px;
            color: #333;
            /* background-color: yellow; */
        }
        .shangpingshuxing2{
            box-sizing: border-box;
            float: right;
            padding-left: 15px;
            width: 120px;
            height: 100%;
            background-color: #f5f5f5;
        }

        .guanggao{
            padding: 20px;
            border-top: 1px #e1e1e1 solid;
            /* border-bottom: 1px #e1e1e1 solid; */
            width: 100%;
            height: 100px;
            /* background-color:blanchedalmond; */
            box-sizing: border-box;
        }
        .xiafanglan{
            padding: 20px;
            margin: 0 auto;
            border-top: 1px #e1e1e1 solid;
            box-sizing: border-box;
            width: 1200px;
            height: 242px;
            
        }

        /* 下拉选择框的style */
        body{
            /* display: flex; */
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: white;
        }
        .dropdown{
            position: relative;
            /* margin-top: 100px; */
            width: 300px;
            height: 30px;
            box-sizing: border-box;
            font-family: 'Poppins',sans-serif;
        }
        .dropdown::before{
            content: '';
            top:15px;
            right: 28px;   
            position: absolute;
            width: 12px;
            height: 2px;
            background: #555;
            z-index: 10;
            transform: rotate(40deg);
            transition: 0.5s;
        }
        
        .dropdown.active::before{
            right: 20px;

        }

        .dropdown::after {
            content: '';
            top:15px;
            right: 20px;   
            position: absolute;
            width: 12px;
            height: 2px;
            background: #555;
            z-index: 10;
            transform: rotate(-40deg);
            transition: 0.5s;
        }
        
        .dropdown.active::after{
            right: 28px;   
        }
        .dropdown input{
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
            border-radius: 10px;
            padding: 12px 20px;
            font-size: 16px;
            background: #fff;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            outline: none;
            border: none;
        }

        .dropdown .option{
            position: absolute;
            top: 70px;
            width: 100%;
            background-color: #fff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 30px 30px rgba(0, 0, 0, 0.05);
            visibility: hidden;
            opacity: 0;
            transition: 0.25s;
        }

        .dropdown.active .option{
            visibility: visible;
            opacity: 1;
        }

        .dropdown .option div{
            padding: 12px 20px;
            cursor: pointer;
        }

        .dropdown .option div:hover{
            background:#62baea;
            color: #fff;
        }


    </style>
</head>
<body>
    <div class="dingkuang">
        <div class="head">
            <div class="ding">
                <div class="dingleft">
                    <a class="login" href="#">登录</a>
                    <span class="shuxian">|</span>
                    <a class="zhuce" href="#">免费注册</a>
                </div>
                <div class="dingyou">
                    <a class="boke" href="#">我的博客</a>
                    <span class="shuxian">|</span>
                    <a class="collection" href="#">收藏夹</a>
                    <span class="shuxian">|</span>
                    <a class="guanli" href="#">店铺管理</a>
                    <span class="shuxian">|</span>
                    <a class="kefu" href="#">联系客服</a>
                </div>
            </div>
        </div>
        <div class="sousuo" style="height: 120px;">
            <div class="shangbiao" style="height: 70px;float: left;margin-top: 20px;"><img src="./infor/7.png"></div>
            <div class="sou" style="height: 120px;">
                <div class="bugcar">
                    <a href="shop.html">
                        <!-- float right -->
                        <div class="neiceng">
                            <!-- <span class="tubiao"><img src="./infor/9.png"></span> -->
                            <span class="go">购物车</span>
                        </div>
                    </a>
                </div>
                <div style="width: 550px;height: 70px;margin: 0 auto;background-color: white;">
                    <div class="sou1">
                        <input type="text" placeholder="经典书目">
                        <button style="width: 70px;height: 35px;border: none;"><img src="./infor/8.png " style="width: 100%;height: 100%;"></button>
                    </div>
                    <div class="souxia">
                        <a class="x1" href="#">笔墨当随时代</a>
                        <span class="shuxian">|</span>
                        <a class="x2" href="#">三体</a>
                        <span class="shuxian">|</span	>
                        <a class="x2" href="#">红星照耀中国</a>
                        <span class="shuxian">|</span>
                        <a class="x2" href="#">哈利波特</a>
                    </div>
                </div>
            </div>
        </div>
    <div class="fenlei">
        <a class="suoyoushangping" href="#" style="box-sizing: content-box;font-size: 14px;color: white;">所有商品分类</a>
        <a class="shouye" href="#">首页</a>
        <a class="xinping" href="#">新品</a>
        <a class="xianshigou" href="#">限时购</a>
        <a class="paihangbang" href="#">排行榜</a>
        <span class="shuxian" style="color: #212121;">|</span>
        <a class="xianshigou" href="#">图书馆</a>
        <a class="xianshigou" href="#">追书者</a>
    </div>
    </div>
    <div class="weizhi">
        <p style="display: inline-block;width:124px;height: 50px;line-height:50px;font-size: 14px;">您当前的位置: </p>
        <a class="wa" href="#">全部分类</a>
        <span class="shuxian" style="color: #212121;">></span>
        <a class="wa" href="#">图书</a>
        <span class="shuxian" style="color: #212121;">></span>
        <a class="wa" href="#">政治军事</a>
    </div> 
    <div class="pic">
        <!-- 物品样式图 -->
        <div class="wupingpic" style="float: left;border: 1px solid #e8e8e8;box-sizing: border-box;width: 428px;height: 428px;">
            <img src="./infor/2.png">
        </div>
        <!-- 店铺展示 -->
        <div class="rightpic" style="float: right;;width: 220px;height: 400px;">
            <div class="title" style="overflow: hidden;box-sizing: border-box;width: 220px;height: 146.6px;border: 1px solid #e8e8e8;padding: 15px 8px;">
                <div class="dianshang" style="width: 202.4px;height: 70px;">
                    <!-- 需要在这个div中加入一个图片 -->
                    <!-- 行内块图片是顶对齐，文字是底对齐 -->
                    <!-- <div style="display: inline-block;width: 20px;height: 20px;background-color: lightblue;"></div> -->
                    <div class="titlepic" style="float: left;width: 70px;height: 70px;"></div>
                    <div style="float: left;padding-left: 10px;width: 90px;height: 70px;line-height: 70px;">博库体验店</div>
                </div>
                <div class="dianxia">
                    <!-- display:inline-block和float冲突 -->
                    <a href="#" style="text-decoration: none;color: #212121;">
                    <div class="jinru" style="box-sizing: border-box;overflow: hidden;float: left;margin-right: 20px;padding: 4px 15px;border: 1px #e8e8e8 solid;border-radius: 20px;font-size: 14px;line-height: 20px;">进入首页</div>
                    </a>
                    <a href="#" style="text-decoration: none;">
                    <div class="kaidian" style="box-sizing: border-box;;float: left;padding: 4px 15px;border: 1px #e8e8e8 solid;box-sizing: border-box;border-radius: 20px;font-size: 14px;background-color: #2ab4e8;;line-height:20px ;color: white;">一键开店</div>
                    </a>
                </div>
            </div>
        </div>
        <!-- 商品介绍购买 -->
        <div class="shangpinggoumai">  
            <div class="shutimu"><p>孙子兵法</p></div>
            <div class="auther">
                作者:
                <a href="#" class="quxian" style="display: inline-block;margin-right: 50px;color: #2db4ea;">[春秋]孙武</a>
                出版社:
                <a href="#" class="quxian" style="color: #2db4ea;">中国友谊</a>
            </div>
            <div class="dingjia">
                <p style="display: inline-block;width: 70px;height: 30px;">定&nbsp; &nbsp;&nbsp;价</p>
                <span><del>39.80</del></span>
                <!-- 加一个空白的div，让上下两个行列块不合并 -->
                <div class="qingchukuai"></div>
                <p style="display: inline-block;width: 70px;height: 40px;line-height: 40px;">售 &nbsp;&nbsp;&nbsp;价</p>
                <span style="display: inline-block;color: #e4393c;">￥<span style="font-size: 28px;top: 5px;position: relative;">18.95</span></span>
            </div>
            <div class="xiangqing">
                <span class="s1 huizi"><p>配送至</p></span>
                <!-- 下拉选择框 （用了js，是借鉴的）-->
                <div class="dropdown" style="float: right;">
                    <input type="text" class="text" readonly placeholder="dropdown menu">
                    <div class="option">
                        <div onmouseover="show('beijing')">beijing</div>
                        <div onmouseover="show('tianjing')">tianjing</div>
                        <div onmouseover="show('shanghai')">shanghai</div>
                        <div onmouseover="show('yichang')">yichang</div>
                        <div onmouseover="show('wuhan')">wuhan</div>
                        <div onmouseover="show('xiaogan')">xiaogan</div>
                        <div onmouseover="show('baoding')">baoding</div>
                    </div> 
                </div>
                <script>
                    function show(a){
                        document.querySelector('.text').value = a;
                    }
            
                    let dropdown =document.querySelector('.dropdown');
                    dropdown.onclick = function(){
                        dropdown.classList.toggle('active');
                    }
                </script>

                <div class="qingchukuai"></div>
                <!-- 直接在标签里面的style里面写color 有最高优先级 hover改变不了颜色 强制显示标签里面style的color -->
                <span class="s1 huizi"><p>销量</p></span><!-- 
                --><span class="s1" style="width: 420px;"><a href="#" class="quxian red">请登录后刷新查看</a></span>
                <div class="qingchukuai"></div>
                <span class="s1 huizi"><p>库存</p></span><!-- 
                --><span class="s1" style="width: 420px;"><a href="#" class="quxian red">请登录后刷新查看</a></span>
            </div>
            <div class="jiagouwuche">
                <a href="#" class="quxian">
                    <div class="j1" style="box-sizing: content-box;">立即购买</div>
                </a>
                <a href="#" class="quxian">
                    <div class="j1" style="color: #2db4ea;background-color: #d5f0fb;box-sizing: content-box;">加入购物车</div>
                </a>
            </div>
            <div class="fuwu">
                <!-- 行内块水平上下错位是由于图和文字一个默认顶对齐、一个默认底对齐造成的 所以可以采取vertial-align：top强制顶对齐 -->
                <!-- 相邻行内块代码在两行会产生一个空格间隙 可以用 “<！-- --“>” 来进行连接 -->
                <span class="s1 huizi" style="height: 60px;line-height: 60px;vertical-align: top;">
                    服务
                </span><!--  
             --><span class="s1" style="height: 60px;width: 450px;color: #666;">
                    <span class="s2" style="margin-right: 30px;height: 60px;">
                        <span style="line-height: 60px;">
                            <img src="./infor/1.png" style="vertical-align: middle;margin-right: 2px;margin-bottom: 2px;width: 16px;height: 16px;">正品保证
                        </span>
                    </span>
                    <span class="s2" style="margin-right: 30px;height: 60px;">
                        <span style="line-height: 60px;">
                            <img src="./infor/1.png" style="vertical-align: middle;margin-right: 2px;margin-bottom: 2px;width: 16px;height: 16px;">七天无理由退换货
                        </span>
                    </span>
                    <span class="s2" style="margin-right: 30px;height: 60px;">
                        <span style="line-height: 60px;">
                            <img src="./infor/1.png" style="vertical-align: middle;margin-right: 2px;margin-bottom: 2px;width: 16px;height: 16px;">赠送19积分
                        </span>
                    </span>
                </span>
            </div>
        </div>
    </div>
    <div class="tuijian">
        <div class="xinshu">
            <div class="xinshutuijian">新书推荐</div>
                <!-- 父子div高度合并需要用overflow：hidden来分开父子高度 -->
                <div class="xinshuzhanshi" style="overflow: hidden;">
                    <!-- <div class="qingchukuai"></div> -->
                    <a href="#">
                    <img src="./infor/10.png" style="box-sizing: border-box;display: block;margin: 30px auto 0;width: 120px;transition: all .4s;">
                    </a>
                    <a href="#" class="quxian">
                        <span class="shuming">战场决胜者：冷兵器时代的战争艺术</span>
                    </a>    
                </div>
        </div><!-- 
     --><div class="shangpingshuxing">
            <div class="shangpingshuxing1">
                <div class="shuxingxialan">
                    <div style="border-top: 2px #2db4ea solid;height: 50px;width: 120px;text-align: center;line-height: 50px;color: #2db4ea;background-color: #fff;">商品详情</div>
                </div>
                <ul class="shuxing">
                    <li class="lshuxing"><span>包装: </span><span>平装</span></li>
                    <li class="lshuxing"><span>出版社: </span><span>中国友谊</span></li>
                    <li class="lshuxing"><span>ISBN: </span><span>9787505753310</span></li>
                    <li class="lshuxing"><span>作者: </span><span>[春秋]孙武</span></li>
                    <li class="lshuxing"><span>页数: </span><span>280</span></li>
                    <li class="lshuxing"><span>出版日期: </span><span>2021-11-01</span></li>
                    <li class="lshuxing"><span>印刷日期: </span><span>2021-09-22</span></li>
                    <li class="lshuxing"><span>开本: </span><span>32开</span></li>
                    <li class="lshuxing"><span>版次: </span><span>1</span></li>
                    <li class="lshuxing"><span>印次: </span><span>1</span></li>
                    <li class="lshuxing"><span>字数: </span><span>170千字</span></li>
                </ul>
            </div>
            <div class="shangpingshuxing2"></div>
        </div>
    </div>
    <div class="guanggao">
        <div class="guanggaofenge" style="margin: 0 auto;padding: 0 50px;box-sizing: border-box;width: 1200px;height: 60px;">
            <span class="s3">
                <img src="./infor/3.png"><!--
             --><div class="guanggaozi" style="display: inline-block;vertical-align: top;margin-left: 10px;height: 50px;">
                <p style="font-size: 24px;">全场正品</p>
                <p>出版社直采·博库正品</p>
                </div>
            </span>
            <span class="s3">
                <img src="./infor/4.png"><!--
             --><div class="guanggaozi" style="display: inline-block;vertical-align: top;margin-left: 10px;height: 50px;">
                <p style="font-size: 24px;">全场正品</p>
                <p>出版社直采·博库正品</p>
                </div>
            </span>
            <span class="s3">
                <img src="./infor/5.png"><!--
             --><div class="guanggaozi" style="display: inline-block;vertical-align: top;margin-left: 10px;height: 50px;">
                <p style="font-size: 24px;">门店自取</p>
                <p>就近取货·方式灵活</p>
                </div>
            </span>
            <span class="s3">
                <img src="./infor/6.png"><!--
             --><div class="guanggaozi" style="display: inline-block;vertical-align: top;margin-left: 10px;height: 50px;">
                <p style="font-size: 24px;">售后无忧</p>
                <p>服务体验·更加精彩</p>
                </div>
            </span>
        </div>
    </div>
    <!-- <div class="xiafanglan"></div> -->
</body>
</html>